<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$fp = @file($strTemplatePath."Search.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);
$fp = str_replace("{SearchData1}", getPayupDateOfAccountSearchLimit("2000-01-01", $isSevenDay), $fp);
$fp = str_replace("{SearchData2}", date("Y-m-d"), $fp);

while(list($k, $v) = each($_strAccount_Main)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

$intLottoID = (int)$_data["LottoID"];
$intLType = (int)$_arrLotto[$intLottoID]["LType"];

$tmp = MakeLottoSelect($_arrLotto, $intLottoID, "LottoID", "SelfSubmit()", $_intLang);
$fp = str_replace("{SelectLotto}", $tmp, $fp);
$tmp = SelectReportType(0, "ReportType", "");
$fp = str_replace("{SelectReportType}", $tmp, $fp);
$tmp = SelectBetType(0, "Bet_Type", "", $intLType);
$fp = str_replace("{SelectBetType}", $tmp, $fp);
$tmp = MakeGambleNoSelect($intLottoID, 0, "GambleID", "", 120, $_arrLotto);
$fp = str_replace("{SelectGamebleNo}", $tmp, $fp);

switch($arrPower[1]){
	case "main":
		$strSelectManager = $_SESSION["Admin_Info"] -> GroupName."<input type=\"hidden\" name=\"MainID\" value=\"".$_SESSION["Admin_Info"] -> ID."\">";
		break;

	case "stockholder":
		$strSelectManager = SelectManager(0, $_SESSION["Admin_Info"] -> ID, 3, "MainID", "", 1);
		break;

	case "all":
		$strSelectManager = SelectManager(0, 0, 3, "MainID", "", 0);
		break;
}

$fp = str_replace("{SelectManager}", $strSelectManager, $fp);
$a = getdate();
$b = date("Y-m-d", mktime(0, 0, 0, $a["mon"], $a["mday"], $a["year"]));
$fp = str_replace("{LastDay}", $b, $fp);

print $fp;
?>